home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyc (Python 2.6)
-
- import logging
- from checkbox.properties import Path
- from checkbox.registry import Registry
-
- class FilenameRegistry(Registry):
- '''Base registry for containing files.
-
- The default behavior is to return the content of the file.
-
- Subclasses should define a filename parameter.
- '''
- filename = Path()
-
- def __init__(self, filename = None):
- super(FilenameRegistry, self).__init__()
- if filename is not None:
- self.filename = filename
-
-
-
- def __str__(self):
- logging.info('Reading filename: %s', self.filename)
- return open(self.filename, 'r').read()
-
-
- def items(self):
- return []
-
-
-